package com.luisliuyi.demo.optimize.apkchannel;

import androidx.appcompat.app.AppCompatActivity;

import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void getChannel(View view) {
        String channel = ChannelHelper.getChannel(this);
        Toast.makeText(this, "当前渠道:" + channel, Toast.LENGTH_SHORT).show();
    }
}
